package com.z.service;

import com.z.pojo.Goods;
import com.z.pojo.PageBean;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author 张福兴
 * date 2021/9/4
 */
public interface GoodsService {
    Goods goodsInfo(Integer gid);
    PageBean<Goods> goodsFormType(Integer nowpage, Integer eachcount, String term);
    Map<String, List<Goods>> IndexGoods();
    Integer addGoods(Goods goods);
    Integer deleteGoods(Integer gid);
    Integer updataGoods(Goods goods) throws SQLException;
}
